import {validateNumber,validateInter} from "@/util/rulesReg";
export const options =  {
	
    option1: {
        menuBtn:true,
        menuPosition:'right',
        emptyBtn:false,
        column: [         
          {
              label: "设备名称",
              labelWidth:120,
              prop: "deviceName",
              span: 8,
              rules: [{
                required: true,
                message: "请输入设备名称",
                trigger: "blur"
              }]              
          },  
          {
              label: "设备厂家名称",
              labelWidth:120,
              prop: "ownerName",
              span: 8,
              rules: [{
                required: true,
                message: "请输入设备厂家名称",
                trigger: "blur"
              }]                
          },            
          {
              label: "设备类型",
              labelWidth:120,
              prop: "deviceType",
              span: 8,
              rules: [{
                required: true,
                message: "请输入设备类型",
                trigger: "blur"
              }]               
          },          
          {
              label: "终端编号",
              labelWidth:120,
              prop: "deviceId",
              span: 8,
              rules: [{
                required: true,
                message: "请输入终端编号",
                trigger: "blur"
              }]                  
          }, 
          {
              label: "合同备案码",
              labelWidth:120,
              prop: "contractRecordCode",
              span: 8,
              rules: [{
                required: true,
                message: "请输入合同备案码",
                trigger: "blur"
              }]               
          }, 
          {
              label: "额定重量(吨)",
              labelWidth:120,
              prop: "limitWeight",
              span: 8,
              display:true,
              rules: [{ validator: validateNumber, trigger: 'blur',required: true }]                 
          },   
          {
              label: "额定力矩(吨*米)",
              labelWidth:130,
              prop: "limitTorque",
              span: 8,
              display:true,
              rules: [{ validator: validateNumber, trigger: 'blur',required: true }]   
          },                       
          {
              label: "塔机高度(米)",
              labelWidth:120,
              prop: "limitHeight",
              span: 8,
              display:true,
              rules: [{ validator: validateNumber, trigger: 'blur',required: true}]   
          },
          {
              label: "塔机工作臂长(米)",
              labelWidth:140,
              prop: "limitMagnitude",
              span: 8,
              display:true,
              rules: [{ validator: validateNumber, trigger: 'blur',required: true }]   
          }, 
          {
              label: "站点名称",
              labelWidth:120,
              prop: "siteInfoName",          
              span: 8,
              value:'',
              disabled:true,
              clearable:false,
              rules: [{
                required: true,
                message: "请输入站点名称",
                trigger: "blur"
              }]                 
          },           
          {
              label: "驾驶员",
              labelWidth:120,
              prop: "staffId",
              type: "select",
              dicUrl: "/api/squirrel-ficm/highriskdeviceinfo/getStaffList",
              props: {
                label: "name",
                value: "id"
              },                              
              span: 8,
              rules: [{
                required: true,
                message: "请选择驾驶员",
                trigger: "blur"
              }]                 
          },      
          {
              label: "位置X轴",
              labelWidth:120,
              prop: "posx",
              span: 8,
              rules: [{ validator: validateInter, trigger: 'blur',required: true }]  
          }, 
          {
              label: "位置Y轴",
              labelWidth:120,
              prop: "posy",
              span: 8,
              rules: [{ validator: validateInter, trigger: 'blur',required: true }] 
          },
          {
              label: "mn",
              labelWidth:120,
              prop: "mn",
              span: 8,
              rules: [{
                required: true,
                message: "请输入mn号",
                trigger: "blur"
              }] 
          }          
        ]
    },
    option2: {
        menuBtn:false,
        column: [
          {
              label: "设备名称",
              labelWidth:120,
              prop: "deviceName",
              span: 8
          },  
          {
              label: "设备厂家名称",
              labelWidth:120,
              prop: "ownerName",
              span: 8
          },            
          {
              label: "设备类型",
              labelWidth:120,
              prop: "deviceType",
              span: 8
          },          
          {
              label: "终端编号",
              labelWidth:120,
              prop: "deviceId",
              span: 8
          }, 
          {
              label: "合同备案码",
              labelWidth:120,
              prop: "contractRecordCode",
              span: 8
          },  
          {
              label: "站点名称",
              labelWidth:120,
              prop: "siteInfoId",
              type: "select",
              dicUrl: "/api/squirrel-ficm/highriskdeviceinfo/getStaffList",
              props: {
                label: "name",
                value: "id"
              },               
              span: 8
          },
          {
              label: "驾驶员",
              labelWidth:120,
              prop: "staffId",
              type: "select",
              dicUrl: "/api/squirrel-ficm/highriskdeviceinfo/getStaffList",
              props: {
                label: "name",
                value: "id"
              },                              
              span: 8
          },      
          {
              label: "位置X轴",
              labelWidth:120,
              prop: "posx",
              span: 8
          }, 
          {
              label: "位置Y轴",
              labelWidth:120,
              prop: "posy",
              span: 8
          }          
        ]
        
    },      
    option3: {
        menuBtn:false,
        column: [
          {
              label: "设备名称",
              labelWidth:120,
              prop: "deviceName",
              span: 8
          },  
          {
              label: "设备厂家名称",
              labelWidth:120,
              prop: "ownerName",
              span: 8
          },            
          {
              label: "设备类型",
              labelWidth:120,
              prop: "deviceType",
              span: 8
          },          
          {
              label: "终端编号",
              labelWidth:120,
              prop: "deviceId",
              span: 8
          }, 
          {
              label: "合同备案码",
              labelWidth:120,
              prop: "contractRecordCode",
              span: 8
          },  
          {
              label: "额定重量(吨)",
              labelWidth:120,
              prop: "limitWeight",
              span: 8
          },  
          {
              label: "站点名称",
              labelWidth:120,
              prop: "siteInfoId",
              type: "select",
              dicUrl: "/api/squirrel-ficm/highriskdeviceinfo/getStaffList",
              props: {
                label: "name",
                value: "id"
              },               
              span: 8
          },          
          {
              label: "驾驶员",
              labelWidth:120,
              prop: "staffId",
              type: "select",
              dicUrl: "/api/squirrel-ficm/highriskdeviceinfo/getStaffList",
              props: {
                label: "name",
                value: "id"
              },                              
              span: 8
          },      
          {
              label: "位置X轴",
              labelWidth:120,
              prop: "posx",
              span: 8
          }, 
          {
              label: "位置Y轴",
              labelWidth:120,
              prop: "posy",
              span: 8
          }          
        ]
    }      
}
